package com.bw.module_home.adapter

import com.bw.lib_common.entity.MenuEntity
import com.bw.module_home.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
class HomeMenuAdapter : BaseQuickAdapter<MenuEntity, BaseViewHolder>(
    R.layout.home_menu_item
) {
    override fun convert(holder: BaseViewHolder, item: MenuEntity) {
        holder.setText(R.id.home_menu_title,item.title)
        holder.setImageResource(R.id.home_menu_image,item.image)
    }
}